//
//  MyCollectionViewLayOut.h
//  UIHomeWork15_网易标题自适应
//
//  Created by tusm on 16/8/3.
//  Copyright © 2016年 tusm. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@protocol MyCollectinViewLayOutDelegate <NSObject>
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout widthForItemAtIndexPath:(NSIndexPath *)indexPath;
@end



@interface MyCollectionViewLayOut : UICollectionViewLayout
@property (nonatomic,weak)id <MyCollectinViewLayOutDelegate>delegate;


@property(nonatomic,assign)UIFont *titleFont;


@property (nonatomic,strong)NSMutableArray <UICollectionViewLayoutAttributes *> *attributesArray;

@property (nonatomic,assign)CGFloat contentWidth; //collection的大小

@property (nonatomic,assign)CGFloat itemWidth;
@end
NS_ASSUME_NONNULL_END
